package com.itheima.service;

import com.itheima.domain.Question;
import com.itheima.domain.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserService {
    Boolean save(User user);

    Boolean update(User user);

    Boolean delete(Integer uid);

    User getById(Integer uid);

    User getByloginname(String loginname);

    List<User> getAll();

    User getByloginname1(String loginname,Integer identity);

    List<User> selectAlluser(String loginname);

    Boolean limit(int uid ,int temp);

    int getIdentity(int uid);

    Boolean Homeupdate(User user);
}
